﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SupMenOperatorC.aspx.cs" MasterPageFile="~/ProductManager/ProductManage.Master" Inherits="GoShopping.Web.SuperManager.ManagerPageC" %>

<%@ Register Assembly="GoShopping.Components" Namespace="BaseText" TagPrefix="cc1" %>
<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Label ID="lbinfo" runat="server" ></asp:Label>
        
 
        
            <asp:Panel ID="panelForAdd" runat="server">
                    <table  border="1" cellpadding="0" cellspacing="0" width="500px">
                        <tr>
                            <td>
                                <asp:CreateUserWizard ID="CreateUserWizard1" runat="server" 
                                    oncreatinguser="CreateUserWizard1_CreatingUser" 
                                    CreateUserButtonText="创建商品管理员">
                                    <WizardSteps>
                                        <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
                                            <ContentTemplate>
                                                <table border="0">
                                                    <tr>
                                                        <td align="center" colspan="2">
                                                            注册新帐户</td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right">
                                                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">用户名:</asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                                                ControlToValidate="UserName" ErrorMessage="必须填写“用户名”。" ToolTip="必须填写“用户名”。" 
                                                                ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right">
                                                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">密码:</asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                                                ControlToValidate="Password" ErrorMessage="必须填写“密码”。" ToolTip="必须填写“密码”。" 
                                                                ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right">
                                                            <asp:Label ID="ConfirmPasswordLabel" runat="server" 
                                                                AssociatedControlID="ConfirmPassword">确认密码:</asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" 
                                                                ControlToValidate="ConfirmPassword" ErrorMessage="必须填写“确认密码”。" 
                                                                ToolTip="必须填写“确认密码”。" ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right">
                                                            <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">电子邮件:</asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="Email" runat="server"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="EmailRequired" runat="server" 
                                                                ControlToValidate="Email" ErrorMessage="必须填写“电子邮件”。" ToolTip="必须填写“电子邮件”。" 
                                                                ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right">
                                                            <asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question">安全提示问题:</asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="Question" runat="server"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="QuestionRequired" runat="server" 
                                                                ControlToValidate="Question" ErrorMessage="必须填写“安全提示问题”。" 
                                                                ToolTip="必须填写“安全提示问题”。" ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right">
                                                            <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer">安全答案:</asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="Answer" runat="server"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="AnswerRequired" runat="server" 
                                                                ControlToValidate="Answer" ErrorMessage="必须填写“安全答案”。" ToolTip="必须填写“安全答案”。" 
                                                                ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="center" colspan="2">
                                                            <asp:CompareValidator ID="PasswordCompare" runat="server" 
                                                                ControlToCompare="Password" ControlToValidate="ConfirmPassword" 
                                                                Display="Dynamic" ErrorMessage="“密码”和“确认密码”必须匹配。" 
                                                                ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="center" colspan="2" style="color: Red;">
                                                            <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ContentTemplate>
                                        </asp:CreateUserWizardStep>
                                        <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server">
                                        </asp:CompleteWizardStep>
                                    </WizardSteps>
                                </asp:CreateUserWizard>
                            </td>
                        </tr>
                    </table>
                 </asp:Panel>          
            <asp:Panel ID="panelForUpdate" runat="server">
                    <table border="1" cellpadding="0" cellspacing="0" width="500px"> 
                        <tr>
                            <td colspan="2">
                                <asp:Label ID="lblinfo" runat="server" Text="修改用户" />
                            </td>
                        </tr>                       
                        <tr>
                            <td align="right"><asp:Label ID="lblUserName" runat="server" Text="用户名："/></td>
                            <td align="left"><cc1:ZLTextBox ID="txtUserName" runat="server" Enabled="False" ></cc1:ZLTextBox></td>
                        </tr>                       
                        <tr>
                            <td align="right"><asp:Label ID="lblPhone" runat="server" Text="电  话：" /></td>
                            <td align="left"><cc1:ZLTextBox ID="txtPhome" runat="server"   MaxLength="13" /></td>
                        </tr>
                        
                        <tr>
                            <td align="right"><asp:Label ID="lblSex" runat="server" Text="性  别：" /></td>
                            <td align="left"><asp:DropDownList ID="ddlSex" runat="server" >
                                <asp:ListItem Text="男" Value="01" Selected="True"></asp:ListItem>
                                <asp:ListItem Text="女" Value="02" />
                            </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td align="left">
                                <asp:Button ID="btnUpdate" runat="server" Text="修  改" 
                                    onclick="btnUpdate_Click" />
                                <asp:Button ID="btnReturn" runat="server" Text="返  回" 
                                    onclick="btnReturn_Click" />
                            </td>
                        </tr>
                    </table>    
                </asp:Panel>
</ContentTemplate>
   </asp:UpdatePanel>
</asp:Content>
